package AlarmIRPConstDefs;
/**
 * Generated from IDL enum "TrendIndication".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class TrendIndication
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _LESS_SEVERE = 0;
	public static final TrendIndication LESS_SEVERE = new TrendIndication(_LESS_SEVERE);
	public static final int _NO_CHANGE = 1;
	public static final TrendIndication NO_CHANGE = new TrendIndication(_NO_CHANGE);
	public static final int _MORE_SEVERE = 2;
	public static final TrendIndication MORE_SEVERE = new TrendIndication(_MORE_SEVERE);
	public int value()
	{
		return value;
	}
	public static TrendIndication from_int(int value)
	{
		switch (value) {
			case _LESS_SEVERE: return LESS_SEVERE;
			case _NO_CHANGE: return NO_CHANGE;
			case _MORE_SEVERE: return MORE_SEVERE;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _LESS_SEVERE: return "LESS_SEVERE";
			case _NO_CHANGE: return "NO_CHANGE";
			case _MORE_SEVERE: return "MORE_SEVERE";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected TrendIndication(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
